﻿using System.Collections.Generic;

namespace smp.ButterflyCakes.Models.ViewModels.Order
{
    public class ShapeBuilderCalculatedView
    {
        public ShapeBuilderCalculatedView()
        {
            Items = new List<ShapeBuilderCalculatedItem>();
        }

        public List<ShapeBuilderCalculatedItem> Items { get; set; }
    }

    public class ShapeBuilderCalculatedItem
    {
        public int Portions { get; set; }
        public int OverallLength { get; set; }
        public int OverallWidth { get; set; }
        public List<ShapeBuilderCalculatedItemSize> Sizes { get; set; }
        public int Waste { get; set; }
    }

    public class ShapeBuilderCalculatedItemSize
    {
        public int Length { get; set; }
        public int Width { get; set; }
        public string Size { get { return Length + " by " + Width; } }
    }
}
